@use '@styles/variables.scss' as *;

.login {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100vh;

  .el-input__inner {
    &:focus {
      border: 1px solid #4e83fd;
    }
  }

  .el-input--medium .el-input__inner {
    height: var(--el-component-custom-height);
    line-height: var(--el-component-custom-height);
  }

  .right-wrap {
    position: relative;
    flex: 1;
    height: 100%;

    .top-right-wrap {
      position: fixed;
      top: 30px;
      right: 30px;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: flex-end;

      .btn {
        display: inline-block;
        padding: 5px;
        margin-left: 15px;
        cursor: pointer;
        user-select: none;
        transition: all 0.3s;

        i {
          font-size: 18px;
        }

        &:hover {
          color: var(--main-color) !important;
        }
      }
    }

    .header {
      display: none;
    }

    .login-wrap {
      position: absolute;
      inset: 0;
      width: 540px;
      height: 610px;
      padding: 0 5px;
      margin: auto;
      overflow: hidden;
      background-size: cover;
      // border-radius: 10px;

      .form {
        box-sizing: border-box;
        height: 100%;
        // padding: 40px 0;
        width: 100%;

        .title {
          margin-left: -2px;
          font-size: 34px;
          font-weight: 600;
          color: var(--art-text-gray-900) !important;
        }

        .sub-title {
          // margin-top: 10px;
          font-size: 14px;
          color: var(--art-text-gray-500) !important;
        }

        .input-wrap {
          margin-top: 25px;

          .input-label {
            display: block;
            padding-bottom: 8px;
            font-size: 15px;
            font-weight: 500;
            color: var(--art-text-gray-800);
          }
        }

        .account-select :deep(.el-select__wrapper),
        .el-input,
        .login-btn {
          height: 46px !important;
        }

        .drag-verify {
          position: relative;
          padding-bottom: 20px;
          margin-top: 25px;

          .drag-verify-content {
            position: relative;
            z-index: 2;
            box-sizing: border-box;
            user-select: none;
            border-radius: 8px;
            transition: all 0.3s;

            &.error {
              border-color: #f56c6c;
            }
          }

          .error-text {
            position: absolute;
            top: 0;
            z-index: 1;
            margin-top: 10px;
            font-size: 13px;
            color: #f56c6c;
            transition: all 0.3s;

            &.show-error-text {
              transform: translateY(40px);
            }
          }
        }

        .forget-password {
          display: flex;
          align-items: center;
          justify-content: space-between;
          font-size: 14px;
          color: var(--art-text-gray-500);

          a {
            // color: var(--main-color);
            color: rgb(96, 100, 107);
            text-decoration: none;

            &:hover {
              color: var(--main-color);
            }
          }

          // .forget-password :deep(.el-checkbox__label) {
          //   color: #34c559;
          // }
        }

        .login-btn {
          width: 100%;
          height: 46px !important;
          color: #fff;
          border: 0;
          background-color: #34c559;
        }

        .register-btn {
          background-color: #34c559;
        }

        .color-green {
          color: #34c559 !important;
        }

        .back-btn {
          width: 100%;
          height: 46px !important;
        }

        .code {
          height: 46px !important;
        }

        .footer {
          margin-top: 20px;
          font-size: 14px;
          color: var(--art-text-gray-800);

          a {
            // color: var(--main-color);
            color: #34c559;
            text-decoration: none;
          }
        }

        .back {
          display: flex;
          align-items: center;
          // margin-bottom: 12px;
          margin-right: 10px;
          cursor: pointer;
        }

        .other-login {
          display: flex;
          justify-content: center;
          align-items: center;

          .el-icon {
            cursor: pointer;
            background-color: #f5f5f5;
            border-radius: 50%;
            padding: 10px;
            margin-right: 10px;
          }
        }
      }

      .form-item {
        background: rgb(255, 255, 255);
        border: 1px solid rgb(231, 237, 245);
        // box-shadow: rgba(231, 237, 245, 0.6) 0px 0px 40px;
        border-radius: 15px;
        padding: 48px 50px;

        .sub-title {
          font-size: 24px;
          font-weight: bold;
          color: var(--art-text-gray-800) !important;
        }

        .tips {
          font-size: 14px;
          color: var(--art-text-gray-500) !important;
          margin-top: 10px;
          margin-left: 25px;
        }
      }
    }
  }
}

@media only screen and (max-width: $device-ipad-pro) {
  .login {
    width: 100%;
    height: 100vh;

    .right-wrap {
      margin: auto;

      .login-wrap {
        position: relative;
        width: 440px;
        height: auto;
        padding: 0;
        border-radius: 0;
        box-shadow: none;

        .form {
          margin-top: 10vh;
        }
      }
    }
  }
}

@media only screen and (max-width: $device-phone) {
  .login {
    position: fixed;
    top: 0;

    .right-wrap {
      box-sizing: border-box;
      width: 100% !important;
      padding: 0 30px;
      margin: auto;

      .login-wrap {
        width: 100%;

        .form {
          margin-top: 12vh;

          .input-wrap {
            .input-label {
              display: none;
            }
          }

          .input-wrap,
          .drag-verify {
            margin-top: 20px;
          }
        }
      }
    }
  }
}